import reuquest from '@/utils/request.js'

// 账号密码登录
export const accountLoginApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/myuser/login', data, options)
}

// 无账号登录
export const notAccountApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/myuser/wx_login', data, options)
}

// 扫码登录确认token_code
export const checkLoginApi = (data = {}, options = { loading: true }) => {
	return reuquest.post('/apiapp/myuser/token_code_login', data, options)
}

// 更新登录Token
export const updateTokenApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/myuser/token', data, options)
}

// 安全退出
export const exitLoginApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/myuser/exit', data, options)
}

// 微信手机验证
export const phoneVerifyApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/myuser/wx_phone_verify', data, options)
}

// 姓名登记
export const rosterNameApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/myuser/roster_name', data, options)
}

// 个人信息
export const userInfoApi = (data = {}, options = { loading: false }) => {
	return reuquest.post('/apiapp/myuser/myinfo', data, options)
}

